//
//  MLKitManager.h
//  Pods
//
//  Created by molon on 15/6/30.
//
//

#import <UIKit/UIKit.h>

@class MLURL;

#define kDefaultMaxCompressedImageSize 300*1024
@interface MLKitManager : NSObject

+ (instancetype)manager;

#pragma mark - select image
//使用手机相册 使用摄像头拍照
+ (UIActionSheet*)commonActionSheetForSelectPictureWithDelegate:(id<UIActionSheetDelegate>)delegate;
+ (UIActionSheet*)commonActionSheetForSelectPictureWithDelegate:(id<UIActionSheetDelegate>)delegate title:(NSString*)title;

- (void)selectPictureWithSourceType:(UIImagePickerControllerSourceType)sourceType maxCompressedImageSize:(double)maxCompressedImageSize callback:(void (^)(UIImage *image,NSData *compressionData,MLURL *url))callback;
- (void)selectPictureWithSourceType:(UIImagePickerControllerSourceType)sourceType allowEditing:(BOOL)allowEditing directReturnOriginalImage:(BOOL)directReturnOriginalImage maxCompressedImageSize:(double)maxCompressedImageSize callback:(void (^)(UIImage *image,NSData *compressedData,MLURL *url))callback;

@end
